STEP 2: We'll build our robots from the left and use a display to keep track of the x-coordinate for each set of legs.

  • First change the value of legs_x from 25 to -200. This will place the first legs all the way to the left.
  • From , drag Variable Display to the bottom of your program.
  • Inside the parentheses of the variable display command .Display(), change my_var to legs_x.
  • Click Run and then Submit before clicking Next to move on!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)